home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2327 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: informatik.tu-muenchen.de!news
  2. From: Peter Breitling <breitlip@informatik.tu-muenchen.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Get name of current method, class or function automatically?
  5. Date: 16 Jan 1996 23:01:46 GMT
  6. Organization: Technische Universitaet Muenchen, Germany    
  7. Distribution: world
  8. Message-ID: <4dhaoq$f6l@sunsystem5.informatik.tu-muenchen.de>
  9. NNTP-Posting-Host: breitlip.modem.informatik.tu-muenchen.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; Linux 1.2.5 i486)
  14. X-URL: news:comp.lang.c++?ALL
  15.  
  16. I want to write some debugging functions for my library:
  17. i have the problem that i want to pass debugging information along with the
  18. name of the method, the linenumber and the file.
  19.  
  20. The macros __FILE__ and __LINE__ are standard C(++). Is there something
  21. similar- like __FUNCTION__ or __METHOD__ or __CLASS__ in the scope of the
  22. function, method or class?
  23.  
  24. Is such thing planned in future?
  25.  
  26. If not - why? I think such things would be very useful. Or is there any
  27. workaround?
  28.  
  29. Cheers,
  30.   Peter
  31. -- 
  32.   __  __
  33.  /__) \_)reitling   * breitlip@informatik.tu-muenchen.de   irc://LooL   / (
  34. ( eter )__)         * http://www.informatik.tu-muenchen.de/~breitlip/  (_Oo\_
  35.  
  36.